const redis = require("redis");

const port = 6379;
const host = "localhost";
const opt = { password: "", db: "" };

// 批量删除键值
const batchDel = function(keys) {
	const client = redis.createClient(port, host, opt);
	client.keys(keys, (err, keys) => {
		client.del(keys, function(err, res) {
			console.log(res);
		});
	});
};